package cn.stylefeng.guns.modular.tool.mapper;

import cn.stylefeng.guns.modular.tool.entity.ToolTaskArrange;
import cn.stylefeng.guns.modular.tool.model.params.ToolTaskArrangeParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolTaskArrangeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 工作安排 Mapper 接口
 */
public interface ToolTaskArrangeMapper extends BaseMapper<ToolTaskArrange> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2022-11-12
     */
    List<ToolTaskArrangeResult> customList(@Param("paramCondition") ToolTaskArrangeParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2022-11-12
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolTaskArrangeParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2022-11-12
     */
    Page<ToolTaskArrangeResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolTaskArrangeParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2022-11-12
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolTaskArrangeParam paramCondition);

	void deleteBySpec(@Param("paramCondition")ToolTaskArrangeParam toolTaskArrangeParam);

	boolean saveBatchList(@Param("list")List<ToolTaskArrangeParam> list);

	List<ToolTaskArrangeResult> findListBySpec(@Param("paramCondition")ToolTaskArrangeParam param);

	ToolTaskArrangeResult findBySpec(@Param("paramCondition")ToolTaskArrangeParam param);

	Integer addReturnId(@Param("paramCondition")ToolTaskArrangeParam taskArrangeParam);

}
